import axios from '@/http/axios'

/*
 * 前台模块
 */

// 取得标签
export const getLables = () => {
  return axios({
    url: '/index/getLabels',
    method: 'get'
  })
}

// 博文分页查询
export const getArticles = (data) => {
  return axios({
    url: '/index/getArticles',
    method: 'post',
    data
  })
}

// 取得单条博文数据
export const getArticle = (data) => {
  return axios({
    url: '/index/getArticle',
    method: 'post',
    data
  })
}

// 查看博文数据处理
export const seeArticle = (data) => {
  return axios({
    url: '/index/seeArticle',
    method: 'post',
    data
  })
}
